package test2

object Arrsort {
  def main(args: Array[String]): Unit = {
    var list=List("Jason","Vince","Dwan","Lynn","Stephon","Tom");
    val groups = list.grouped(3)
    //val sg = groups.map(g=>g.sorted)
    val sg = groups.map(g=>g.sortBy(x=>{x.length}))

    sg.foreach(println)
  }
}
